<?php
namespace app\user\controller;
use think\Db;
use app\Param;

class Passport extends Param
{
    /**
     * 是否登录
     * @access protected
     * @param int $n 随机数的长度(默认32位)
     * @since 1.0
     * @return string
     */
    public function _getLogin($n = '')
    {
        $arrPassport = Db::name('user_passport')->where(array('passport' => $n))->find();

        _toCompare($arrPassport, '==', null, 19016);    //登录凭证错误
        _toCompare($arrPassport, '!=', null, 19017);    //登录凭证通过
    }

}















































